package jnpf.service;


import jnpf.model.knowmange.KnowMangeForm;
import jnpf.model.ragFlow.common.IdReq;
import jnpf.model.ragFlow.common.RagFlowApiResult;
import jnpf.model.ragFlow.know.CreateKnowReq;
import jnpf.model.ragFlow.know.DatasetListRequest;

public interface RagFlowKnowService {
    /**
     * 创建空数据集
     *
     * @return 服务器响应的内容字符串
     */
    RagFlowApiResult createDataset(CreateKnowReq createDataSetsReq) throws Exception;

    /**
     * 删除数据集
     *
     * @return 服务器响应的内容字符串
     */
    RagFlowApiResult deleteDataset(IdReq createDataSetsReq) throws Exception;

    /**
     * 更新数据集
     *
     * @return 服务器响应的内容字符串
     */
    RagFlowApiResult updateDataset(CreateKnowReq createDataSetsReq,String datasetId) throws Exception;

    /**
     * 获取数据集列表
     *
     * @return 服务器响应的内容字符串
     */
    RagFlowApiResult getDatasetList(DatasetListRequest datasetListRequest) throws Exception;

    CreateKnowReq getCreateKnowReq( KnowMangeForm knowMangeForm);
}
